<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/head.jspf"%>  

<head>
<title>东方易云后台管理系统</title>
<script>
function addGroupInfo(){
	var errorMsg = "";
	if(isNull($("#groupName").val())){
		errorMsg += '<spring:message code="message.group.system.groupname.is.blank" />';
	}
	if (checkRadioStat("status")==false){
		errorMsg += '<spring:message code="message.group.system.group.status.not.select" />';
	}
	
	if(errorMsg != ""){
		alert(errorMsg);
		return;
	}else{
		$('#editForm').attr("action","/group/${type}/editSubmit");
		$('#editForm').submit();
	}
}

function goBack(){
	$('#editForm').attr("action","/group/${type}/list");
	$('#editForm').submit();
}
</script>

</head>

<body>
<form method="post" id="editForm">
	<table border="1">
		<tr><td >修改用户组信息<input name="groupId" type="hidden" value="<c:out value='${groupInfoVO.groupId}' />" >
						  <input name="pageNo" type="hidden" value="<c:out value='${pageNo}'/>" >
					      <input type="hidden" id="groupNameSearch" name="groupNameSearch" value="<c:out value='${groupNameSearch }' />">
					      <input type="hidden" id="organizationIdSearch" name="organizationIdSearch" value="<c:out value='${organizationIdSearch }' />">
					      <input type="hidden" id="statusSearch" name="statusSearch" value="<c:out value='${statusSearch }' />">
			</td></tr>
		<tr><td>组名称:</td><td><input id ="groupName" name="groupName" type="text" value="<c:out value='${groupInfoVO.groupName}'/>"></td></tr>
		<tr><td>组状态:</td><td>启用：<input id="status" name="status" type="radio" value="1" <c:if test="${groupInfoVO.status eq statusOne}">checked</c:if>/> 停用：<input id="status" name="status" type="radio"  value="0" <c:if test="${groupInfoVO.status eq statusZero}">checked</c:if> /></td></tr>
		<tr><td>文本域:</td><td><textarea name="memo"><c:out value='${groupInfoVO.memo}'/></textarea></td></tr>
		<tr><td><input type="button" value="确定" onclick="javascript:addGroupInfo();"/><input type="button" value="取消" onclick="javascript:goBack();"/></td></tr>
	</table>

</form>
</body>

</html>
